package main

import "fmt"

func main() {
	arr := []int{1, 2, 3, 4, 5}
	sum := sum(arr)
	fmt.Println("sum() :", sum)
}

func sum(arr []int) (sum int) {
	for _, v := range arr {
		sum += v
	}
	return
}
